I:/Documents/developpement/projets/C/blast/blastguy_wii_2.2/src/map.h File Reference

Load and display a map (level). Some parts are generic, and other game specific. Hard to separat this in C... But I limited to the maximum the blastguy specific data (only is_walkable statement and image key from file) all other stuff (block falling from the sky after time out...) goes to another file. More...

#include <stdlib.h>
#include <stdio.h>
#include <SDL/sdl.h>
#include "tile.h"
#include "image.h"

Include dependency graph for map.h:

This graph shows which files directly or indirectly include this file:


Data Structures

struct  t_map

Functions

bool map_load_level (map *p_map, char *full_path)
 load a map file into the raw_data
bool map_draw (map *p_map, SDL_Surface *destination)
 draw a map

Detailed Description

Load and display a map (level). Some parts are generic, and other game specific. Hard to separat this in C... But I limited to the maximum the blastguy specific data (only is_walkable statement and image key from file) all other stuff (block falling from the sky after time out...) goes to another file.

Author:
DREVET Olivier
Date:
September and October 2008
Note:
ANSI c99 compliance. Published under the GPL 3 license (see license.txt for more info)
Reading : http://en.wikipedia.org/wiki/Row-major_order

Function Documentation

bool map_draw ( map p_map,
SDL_Surface *  destination 
)

draw a map

Parameters:
[in] map to draw
[in,out] surface where to draw
Returns:
true is success or false if an error occured (explanations are puts in stderr)

bool map_load_level ( map p_map,
char *  full_path 
)

load a map file into the raw_data

Parameters:
[in] full_path path of the map file to load


Generated on Tue Nov 4 21:07:19 2008 for Blastgu by  doxygen 1.5.4